package cn.mastor.config;

import com.easemob.im.server.EMProperties;
import com.easemob.im.server.EMService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {
    @Bean
    public EMService service() {
        EMProperties properties = EMProperties.builder()
                .setAppkey("1105221208166403#peiwanapp")
                .setClientId("YXA6a876HSVUR4OHhjIVCFXYZA")
                .setClientSecret("YXA6FV6z2Z3NaDhRTJXUaeRdThgNuwQ")
                .build();
        return new EMService(properties);
    }
}